package util

import (
	"math/rand"
	"time"

	"github.com/rs/xid"
)

// 生成群号码
func GenerateGroupNumber() [9]int {
	var arr [9]int
	rand.Seed(time.Now().UnixNano())
	for i := 0; i < 9; i++ {
		arr[i] = rand.Intn(10)
	}
	return arr
}

// 生成uuid
func GenerateUUID() string {
	guid := xid.New()
	return guid.String()
}
